package service

type ResultMsg struct {
	Success bool
	Message string
	Entity  interface{}
}

func ResultSuccess(entity interface{}) ResultMsg {
	return ResultMsg{
		Success: true,
		Entity:  entity,
	}
}

func ResultError(message string) ResultMsg {
	return ResultMsg{Message: message}
}
